import request from '@/request/request.js';


/**
 * @description  任务列表
 */
export function getSaleReturnOrderPage(param){

  return request({
    url: '/sale-return-order/page',
    headers: {
      isToken: true
    },
    method: 'get',
    params: param
  })
}

/**
 * 修改订单状态
 * @param code 要修改的订单
 * @param param 参数
 */
export function updateSaleReturnStatus(code, param){
  return request({
    url: '/sale-return-order/' + code + '/updateStatus',
    headers: {
      isToken: true
    },
    method: 'put',
    params: param
  })
}

export function getSaleReturnForm(code){
  return request({
    url: '/sale-return-order/' + code + '/form',
    headers: {
      isToken: true
    },
    method: 'get'
  })
}